import { Injectable } from '@angular/core';

import { Hero } from './hierachical-DI-hero';

@Injectable()
export class HeroesService {
    heroes: Array<Hero> = [
        { name: 'RubberMan', power: 'flexibility' },
        { name: 'Tornado', power: 'Weather changer' }
    ];
    getHeroes() {
        return this.heroes;
    }
    constructor() { }
}